﻿<%@ Page Title="" Language="C#" Theme="Default_Themes" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="DangKyLopHoc.aspx.cs" Inherits="DanhMuc_DangKyLopHop" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <asp:UpdatePanel ID="udt1" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pncontent" runat="server">
            <div class="row-fluid">
                <div class="span12">
                    <div class="box" >
                        <div class="box-title">
                            <h3><i class="icon-file"></i>Danh sách lớp đào tạo</h3>
                            <div class="box-tool">
                                <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
                                <a data-action="close" href="#"><i class="icon-remove"></i></a>
                            </div>
                        </div>
                        <div class="box-content">
                            <asp:GridView ID="griddslop" runat="server" AutoGenerateColumns="False" Width="100%" DataKeyNames="ID" EnableTheming="True" CellPadding="4" ForeColor="#333333" GridLines="None" OnRowCommand="griddslop_RowCommand">
                                <AlternatingRowStyle BackColor="White" />
                                <Columns>
                                    <asp:TemplateField HeaderText="Tên lớp">
                                        <ItemTemplate>
                                            <asp:Label ID="lblMaLopID" runat="server" Text='<%# Bind("MaLop") %>' Visible="false"></asp:Label>
                                            <asp:DropDownList ID="drlXepLoai" runat="server" DataSourceID="source" Enabled="false" CssClass="f" DataValueField="ID" DataTextField="TenChuongTrinh" SelectedValue=<%#Eval("TenLop") %>></asp:DropDownList>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Từ ngày">
                                        <ItemTemplate>
                                            <asp:Label ID="lblTuNgay" runat="server" Text='<%# Bind("TuNgay") %>' Visible="true"></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Đến ngày">
                                        <ItemTemplate>
                                            <asp:Label ID="lblDenNgay" runat="server" Text='<%# Bind("DenNgay") %>' Visible="true"></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center"/>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Ngày khai giảng">
                                        <ItemTemplate>
                                            <asp:Label ID="lblNgayKhaiGiang" runat="server" Text='<%# Bind("NgayKhaiGiang") %>' Visible="true"></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center"/>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Ngày hết hạn đăng ký">
                                        <ItemTemplate>
                                            <asp:Label ID="lblNgayHetHan" runat="server" Text='<%# Bind("NgayHetHanDangKy") %>' Visible="true"></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center"/>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Ghi chú" Visible="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lblGhiChu" runat="server" Text='<%# Bind("GhiChu") %>' Visible="false"></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Đăng ký">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LinkButtonxoa" runat="server" CausesValidation="false" 
                                                CommandName="CommandDangKy" CommandArgument='<%# ((GridViewRow) Container).RowIndex %>' Text="<i class='icon-wrench'></i>&nbsp;&nbsp;Đăng ký"></asp:LinkButton>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:TemplateField>
                                </Columns>
                                <EditRowStyle BackColor="#2461BF" />
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle BackColor="#EFF3FB" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                <SortedDescendingHeaderStyle BackColor="#4870BE" />
                            </asp:GridView>
                        </div>
                    </div>
                </div>
            </div>
            </asp:Panel>
            <asp:Panel ID="pnDangky" runat="server" Visible="false">
                <div class="row-fluid">
                    <div class="span12">
                        <div class="box" >
                            <div class="box-title">
                                <h3><i class="icon-file"></i>Thông tin lớp học</h3>
                                <div style="float:right;">
                                    <asp:LinkButton ID="btnclose" OnClick="btnclose_Click" Visible="true" runat="server" class="btn  btn-danger"><i class="icon-signout"></i> Đóng</asp:LinkButton>
                                </div>
                            </div>
                            <div class="box-content">
                                <div class="control-group info">
                                <label class="control-label" style="width:150px;padding-right:10px;">Tên chương trình đào</label>
                                <div class="controls">
                                    <asp:TextBox ID="txtTenLop" runat="server" CssClass="span5" ReadOnly="true"></asp:TextBox>
                                </div>
                                <div style="height:5px;"></div>
                                <label class="control-label" style="width:150px;padding-right:10px;">Thời gian đào tạo từ</label>
                                <div class="controls">
                                    <asp:TextBox BorderStyle="Solid" ReadOnly="true"  BorderColor="#3A87AD" BorderWidth="1px" ID="txttungay" runat="server" class="span2"></asp:TextBox>
                                    Đến ngày &nbsp;&nbsp;
                                    <asp:TextBox BorderStyle="Solid" ReadOnly="true"  BorderColor="#3A87AD" BorderWidth="1px" ID="txtdenngay" runat="server" class="span2"></asp:TextBox>
                                </div>
                                <div style="height:5px;"></div>
                                <label class="control-label" style="width:150px;padding-right:10px;">Ngày khai giảng</label>
                                <div class="controls">
                                    <asp:TextBox BorderStyle="Solid" ReadOnly="true" BorderColor="#3A87AD" BorderWidth="1px" ID="txtNgayKhaiGiang" runat="server" class="span2"></asp:TextBox>
                                </div>
                                <div style="height:5px;"></div>
                                <label class="control-label" style="width:150px;padding-right:10px;">Ngày hết hạn đăng ký</label>
                                <div class="controls">
                                    <asp:TextBox ID="txtNgayHetHanDangKy" ReadOnly="true" runat="server" CssClass="span2"></asp:TextBox>
                                </div>
                                <div style="height:5px;"></div>
                                <label class="control-label" style="width:150px;padding-right:10px;">Ghi chú</label>
                                <div class="controls">
                                    <asp:TextBox ID="txtGhiChu" runat="server" ReadOnly="true" CssClass="span5" TextMode="MultiLine" Height="70px"></asp:TextBox>
                                </div>
                                 <div style="height:5px;"></div>
                                <label class="control-label" style="width:150px;padding-right:10px;"></label>
                                <div class="controls">
                                    <asp:LinkButton ID="LinkButton1" OnClick="btnclose_Click" Visible="true" runat="server" class="btn  btn-danger"><i class="icon-signout"></i> Đóng</asp:LinkButton>
                                    <asp:Label ID="lblstatus" runat="server" ForeColor="Red"></asp:Label>
                                </div>
                                <div style="height:15px;"></div>
                                <span style="font-weight:bold;font-style:italic;color:#0094ff;font-size:1.2em;">Danh sách cán bộ đoàn</span>
                                <div style="height:5px;"></div>
                                <input id="txtMaLopID" runat="server" type="hidden" />
                                <asp:GridView ID="gridmanager" runat="server" AutoGenerateColumns="False" Width="100%" DataKeyNames="MaDoanVien" EnableTheming="True" CellPadding="4" ForeColor="#333333" GridLines="None">
                                <AlternatingRowStyle BackColor="White" />
                                <Columns>
                                    <asp:TemplateField HeaderText="Đăng ký/Hủy đăng ký">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chk_DangKy" Checked='<%#Eval("DaDangKy") %>' OnCheckedChanged="chk_DangKy_CheckedChanged" Enabled="true" AutoPostBack="true" runat="server" />
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" Width="100px"/>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Mã đoàn viên">
                                        <ItemTemplate>
                                            <%#Eval("MaDoanVien") %>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Tên đoàn viên">
                                        <ItemTemplate>
                                            <%#Eval("TenDoanVien") %>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Đơn vị trực thuộc">
                                        <ItemTemplate>
                                            <%#Eval("DonViTrucThuoc") %>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Đơn vị công tác" Visible="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lbldonvicongtac" runat="server" Text='<%#Eval("DonViCongTac") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Chức vụ">
                                        <ItemTemplate>
                                            <%#Eval("ChucVu") %>
                                            <asp:Label ID="lblChucVuDoanID" Visible="false" runat="server" Text='<%#Eval("ChucVuDoanID") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                </Columns>
                                <EditRowStyle BackColor="#2461BF" />
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle BackColor="#EFF3FB" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                <SortedDescendingHeaderStyle BackColor="#4870BE" />
                            </asp:GridView>
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress runat="server" ID="udtprog" AssociatedUpdatePanelID="udt1">
        <ProgressTemplate>
            <div class="progress">
                <img src="../img/ajax-loader.gif" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:ObjectDataSource ID="source" runat="server" SelectMethod="GetListChuongTrinhDaoTao" TypeName="PageURL"></asp:ObjectDataSource>
    <style type="text/css">
        .f {
            width:100%;
            border:none;
        }
    </style>
    <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
</asp:Content>

